package com.iting.xmldemo.impl.factory;


import com.iting.xmldemo.UserDao;
import com.iting.xmldemo.impl.UserDaoImpl;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2021/11/10
 */
public class InstanceFactory {
    // public InstanceFactory() {
    //     System.out.println("InstanceFactory实例工厂实例化");
    // }

    public UserDao getBean(){
        // System.out.println("调用了InstanceFactory工厂的非静态方法");
        return new UserDaoImpl();
    }
}
